import Addressindex from '@/components/address/index.vue'
import Addressadd from '@/components/address/add.vue'
import Addressedit from '@/components/address/edit.vue'

//路由列表
const list = [
    {
        path:'index',
        name:'addIndex',
        component:Addressindex,
        meta: {IsLogin:true}
    },
    {
        path:'add',
        name:'addAdd',
        component:Addressadd,
        meta: {IsLogin:true}
    },
    {
        path:'edit',
        name:'addEdit',
        component:Addressedit,
        meta: {IsLogin:true}
    },
]
//父路由的结构
const layout = {
    template:`<router-view></router-view>`
}

export default [{
    path:'/address',
    name:'address',
    component:layout,
    children:list
}]

